<?php $this->display('inc_daohang.php'); ?>

<div id="nsc_subContent" style="border:0">
<script type="text/javascript">
	$(function() {
		$( ".menus-li li").click(function(){
            $( ".menus-li li").removeClass("on");
            $(this).addClass("on");
            $("#tabs-1,#tabs-2").hide();
            $("#tabs-"+($(this).index()+1)).show();
        });
	})
</script>

<div id="siderbar">
<ul class="list clearfix">
<li class="current"><a href="/index.php/safe/info" >绑定卡号</a></li>
<li ><a href="/index.php/safe/passwd" >密码修改</a></li>
<li ><a href="/index.php/record/search" >投注记录</a></li>
<li ><a href="/index.php/report/coin" >帐变记录</a></li>
<li ><a href="/index.php/report/count" >盈亏报表</a></li>
<li ><a href="/index.php/cash/rechargeLog" >充值记录</a></li>
<li ><a href="/index.php/cash/toCashLog" >提现记录</a></li>
<li ><a href="/index.php/user/nickname" >更改称昵</a></li>
<li ><a href="/index.php/box/receive" >消息管理</a></li>
</ul>
</div>
<link rel="stylesheet" href="/css/nsc/reset.css?v=1.16.11.5" />
<link rel="stylesheet" href="/css/nsc/list.css?v=1.16.11.5" />
<link rel="stylesheet" href="/css/nsc/activity.css?v=1.16.11.5" />
<script type="text/javascript" src="/js/nsc/jquery-1.7.min.js?v=1.16.11.5"></script>
<script type="text/javascript" src="/js/nsc/main.js?v=1.16.11.5"></script>
<script type="text/javascript" src="/js/nsc/dialogUI/jquery.dialogUI.js?v=1.16.11.5"></script>
<link href="/css/nsc/plugin/dialogUI/dialogUI.css?v=1.16.11.5" media="all" type="text/css" rel="stylesheet" />

<style type="text/css">
	.grayTable {border-bottom: 1px solid #dbdddf;}
	.grayTable > tbody > tr > td {padding: 0px;}
	.grayTable tr td table {}
	.grayTable tr td table tr td {border-top: none; border-bottom: none;}
	.grayTable tr td table tr td.no {border-right: none;}
</style>

<div id="subContent_bet_re">
<!--消息框代码开始-->
<script src="/js/jqueryui/ui/jquery.ui.core.js?v=1.16.11.5"></script>
<script src="/js/jqueryui/ui/jquery.ui.widget.js?v=1.16.11.5"></script>
<script src="/js/jqueryui/ui/jquery.ui.tabs.js?v=1.16.11.5"></script>
<script language="javascript" type="text/javascript" src="/js/common/jquery.md5.js?v=1.16.11.5"></script>
<script type="text/javascript" src="/js/keypad/jquery.keypad.js?v=1.16.11.5"></script>
<link rel="stylesheet" type="text/css" media="all" href="/js/keypad/keypad.css?v=1.16.11.5"  />
<!--消息框代码结束-->

<?php if($this->user['coinPassword']){ ?>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="grayTable">
	<thead>
        <tr>
			<th width="150">银行类型</th>
            <th width="145">银行卡号</th>
			<th width="150">开户姓名</th>
            <th width="250">开户地址</th>
            <th width="140">资金密码</th>
            <th width="110">保存</th>
        </tr>
    </thead>
    <tbody>
<?php
	$banks=$this->getRows("select * from {$this->prename}bank_list where isDelete=0 and id!=12 and id!=17 and id!=19 and id!=18 and id!=20 and id!=21 and id!=22 order by sort");

	$myBanks = $this->getRows("select * from {$this->prename}member_bank where uid=?", $this->user['uid']);
	if(empty($myBanks) == false){
		foreach($myBanks as $myBank){
?>
		<tr>
			<td colspan="6">
				<form action="/index.php/safe/setCBAccount" method="post" target="ajax" onajax="safeBeforSetCBA" call="safeSetCBA">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
        					<td width="150">
								<?php $flag = 0; ?>
								<select name="bankId" class="text5" disabled="disabled">
									<?php foreach($banks as $bank){ ?>
										<option value="<?=$bank['id']?>" <?=$this->iff($myBank['bankId']==$bank['id'], 'selected')?>><?=$bank['name']?></option>
									<?php } ?>
								</select>
							</td>
							<td width="145">
								<input type="text" name="account" class="text4" value="<?=preg_replace('/^(\w{4}).*(\w{4})$/', '\1***********\2',htmlspecialchars($myBank['account']))?>" <?=$this->iff($flag, 'readonly')?> style="width:125px;"/>
							</td>
							<td width="150">
								<input type="text" name="username" class="text4" style="width: 130px;" value="<?=$this->iff($myBank['username'],mb_substr(htmlspecialchars($myBank['username']),0,1,'utf-8').'**')?>" <?=$this->iff($flag, 'readonly')?> />
							</td>
         					<td width="250">
		 						<input type="text"  name="countname" class="text4" value="<?=preg_replace('/^(\w{4}).*(\w{4})$/','\1***\2',htmlspecialchars($myBank['countname']))?>" <?=$this->iff($flag, 'readonly')?> style="width:220px;"/>
		 					</td>
        					<td width="140">
								<input type="password" name="coinPassword" value="<?=preg_replace('/^(\w{4}).*(\w{4})$/','\1***\2',htmlspecialchars($myBank['account']))?>" class="text4" style="width: 100px;" <?=$this->iff($flag, 'readonly')?> />
							</td>
        					<td width="110" class="no">
								<input type="hidden" name="id" value="<?=$myBank['id'] ?>" />
         						<input id="setbank" type="submit" value="保存" class="formZjbd" />
        					</td>
						</tr>
					</tbody>
				</table>
				</form>
			</td>
		</tr>
<?php
		}
	}
?>
		<tr>
			<td colspan="6">
				<form action="/index.php/safe/setCBAccount" method="post" target="ajax" onajax="safeBeforSetCBA" call="safeSetCBA">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
	        				<td width="150">
								<?php $flag=0; ?>
								<select name="bankId" class="text5">
									<?php foreach($banks as $bank){ ?>
									<option value="<?=$bank['id']?>" <?=$this->iff($myBank['bankId']==$bank['id'], 'selected')?>><?=$bank['name']?></option>
									<?php } ?>
								</select>
							</td>
							<td width="145">
								<input type="text" name="account" class="text4" value="" style="width:125px;"/>
							</td>
							<td width="150">
								<input type="text" name="username" class="text4" style="width: 130px;" value="" />
							</td>
	         				<td width="250">
			 					<input type="text" name="countname" class="text4" value="" style="width:220px;"/>
			 				</td>
	        				<td width="140">
								<input type="password" name="coinPassword" value="" class="text4" style="width: 100px;" />
							</td>
	        				<td width="110" class="no">
	         					<input id="setbank" type="submit" value="保存" class="formZjbd" />
	        				</td>
						</tr>
					</tbody>
				</table>
	        	</form>
	        </td>
	    </tr>
    </tbody>
</table>
	<?php }else{?>	
		
	<div id="subContent_bet_re">
		<div id="error">
		<h3>
			<font class="hint_red">您还未设定提款密码，为了您的账户安全，请先设定好您的提款密码</font>
		</h3>
		<div class="yhlb_back"><a href="/index.php/safe/passwd">设置资金密码</a></div>
	</div>

﻿</div>
<?php }?>

</div>
</div></div></div></div></div>
<?php $this->display('inc_che.php'); ?>
<script type="text/javascript">
	$(document).ready(function(){
				});
	jQuery("input.password").keypad({
	layout: [
			$.keypad.SPACE + $.keypad.SPACE + $.keypad.SPACE + '1234567890',
			'cdefghijklmab', 
							"stuvwxyznopqr"/*+ $.keypad.CLEAR*/,
							$.keypad.SPACE + $.keypad.SPACE + $.keypad.SHIFT + $.keypad.CLEAR + $.keypad.BACK + $.keypad.CLOSE
			],
	 // 软键盘按键布局 
	buttonImage:'/js/keypad/kb.png',	// 弹出(关闭)软键盘按钮图片地址
	buttonImageOnly: true,	// True 表示已图片形式显示, false 表示已按钮形式显示
	buttonStatus: '打开/关闭软键盘', // 打开/关闭软键盘按钮说明文字
	showOn: 'button', // 'focus'表示已输入框焦点弹出, 
		// 'button'通过按钮点击弹出,或者 'both' 表示两者都可以弹出 
		
	keypadOnly: false, // True 表示只接受软件盘输入, false 表示可以通过键盘和软键盘输入
		
	randomiseNumeric: true, // True 表示对所以数字位置进行随机排列, false 不随机排列
	randomiseAlphabetic: true, // True 表示对字母进行随机排列, false 不随机排列 
	
			clearText: '清空', // Display text for clear link 
			clearStatus: '', // Status text for clear l
			
	shiftText: '大小写', // SHIFT 按键功能的键的显示文字 
	shiftStatus: '转换字母大小写', // SHIFT按键功能的TITLE说明文字 
	
	closeText: '关闭', // 关闭按键功能的显示文字 
	closeStatus: '关闭软键盘', // 关闭按键功能的TITLE说明文字 
	
	backText: '退格', // 退格功能键的显示文字 
	backStatus: '退格', // 退格功能键的说明文字
		   
	onClose: null	// 点击软键盘关闭是调用的函数
	});
</script>

 </body>
 </html>